<script>
import axios from "axios";
export default {
  name: "ajaxBox",
  data(){
    return{
      src:'',
      imgList:[]
    }
  },
  created() {
    axios.get('https://wkt.myhope365.com//weChat/applet/course/banner/list?number=3').then(res =>{
      console.log(res)
      this.src = res.data.data[0].imgUrlPc
      this.imgList = res.data.data
    })
  },
  methods:{

  },
}
</script>

<template>
      <div>
        <img :src="src" alt="">
        <img v-for="item in imgList" :key="item.id" :src="item.imgUrlPc" alt="">
      </div>
</template>

<style scoped lang="less">
img {
  width: 300px;
  height: 200px;
}
</style>